# -*- mode: python ; coding: utf-8 -*-

block_cipher=None

a = Analysis(
['pytoexe.py'], 
    pathex=[],
    binaries=[],
    # 此处可以添加静态资源，例如你有个图片文件夹imgs，可以这样写[('imgs','imgs'),('test.txt','.')]，打包以后会有一个一样的文件夹，点表示当前文件夹。
datas=[('D:/xia/py/pytoexe\\ui', 'ui'), ('D:/xia/py/pytoexe\\base.spec', '.'), ('D:/xia/py/pytoexe\\main.spec', '.'), ('D:/xia/py/pytoexe\\pytoexe.ico', '.'), ('D:/xia/py/pytoexe\\pytoexeUI.ui', '.')], 
hiddenimports=None, 
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
    noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    [],
    exclude_binaries=True,
name='pytoexe', 
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
console=False, 
icon='D:/xia/py/pytoexe/pytoexe.ico', 
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,

)
coll = COLLECT(
    exe,
    a.binaries,
    a.zipfiles,
    a.datas,
    strip=False,
    upx=True,
    upx_exclude=[],
name='pytoexe', 
)